import React,{useState,useEffect,useContext} from 'react';
import {useSelector,useDispatch} from 'react-redux'
import Child1 from './Child1';
export default function parent() {
  const [count, setCount] = useState(0);
  return (
   <>
    <div>
      <p>You clicked {count} times</p>
      <button onClick={() => setCount(count + 1)}>
        Click me
      </button>
      <Child1></Child1>
    </div>
    </>
  )
}
